<h2>Student Registration</h2>

<?php echo $this->session->flashdata('register_error'); ?>

<?php echo form_open('', array('id' => 'registerform')); ?>

<div class='textfield'>
  <p><?php echo form_label('Email: *', 'username'); ?></p>
     <?php echo form_error('username', '<p class="error">', '</p>'); ?>
  <p><?php echo form_input('username', '', 'tabindex="4"'); ?></p>
</div>

<div class='textfield'>
  <p><?php echo form_label('Password: *', 'pass_one'); ?></p>
     <?php echo form_error('pass_one', '<p class="error">', '</p>'); ?>
  <p><?php echo form_password('pass_one', '', 'tabindex="5"'); ?></p>
</div>

<div class='textfield'>
  <p><?php echo form_label('Confirm Password: *', 'pass_two'); ?></p>
     <?php echo form_error('pass_two', '<p class="error">', '</p>'); ?>
  <p><?php echo form_password('pass_two', '', 'tabindex="6"'); ?></p>
</div>

<br />

<p><?php //echo form_submit('register', 'Register', 'tabindex="7"'); ?></p>

<button id='register_button' tabindex='7'>Register</button>

<?php echo form_close(); ?>